@import "mixin";
@import "common";
@import "animate";

.fragments {
  @include absolute();
  height: 100%;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #f0eff5;
  .container-y {
    position: relative;
    margin-top: 40px;
    padding-bottom: 20px;
    width: 100%;
  }
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: $themBlue;
  color: #fff;
  border-bottom: 1px solid #d8d8d8;
  .wrap {
    position: relative;
  }
  $height: 40px;
  @mixin _height {
    height: $height;
    line-height: $height;
    text-align: center;
  }

  .b {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    font-size: 22px;
    @include _height;
    &:active .b-i {
      font-size: 26px;
    }
    .b-i {
      font-size: 22px;
      font-weight: 700;
    }
  }

  .t {
    margin: 0 88px;
    position: relative;
    width: auto;
    font-weight: 400;
    font-size: 16px;
    @include wordHidden;
    @include _height;
  }

}

.switcher-wrap {
  position: relative;
  width: 100%;
  height: 44px;
  line-height: 44px;
  background-color: #fff;
  @include flex-display;
  @include flex-row;
  .si {
    @include flex-size(1);
    height: 100%;
    text-align: center;
    box-sizing: border-box;
    &:active {
      background-color: #efefef;
      font-size: 14px;
      color: #007aff;
    }
  }
  .switcher-active {
    color: #007aff;
    border-bottom: 4px solid #007aff;
  }
}

.data-list-wrap {
  width: 100%;
  .d-item {
    padding: 12px;
    border-radius: 4px;
    background-color: #fff;
    @include flex-display;
    @include flex-align-center;
    margin: 10px;
    .i-content{
      @include flex-size(1);
      @include wordHidden;
      .i-title{
        font-size: 16px;
        @include wordHidden;
      }
      .i-time,.i-name{
        font-size: 12px;
        margin-top: 4px;
      }
      .i-time{
        color: $font-color-gray;
      }
    }
    .i-img{
      width: 44px;
      height: 44px;
      margin-right: 10px;
    }
    @mixin state($font,$icon){
      font-size: 12px;
      position: relative;
      padding-left: 20px;
      color: $font;
      &:before{
        @include iconCode($icon);
        font-size: 17px;
        color: $font;
        position: absolute;
        top: -1px;
        left: 0;
      }
    }
    .i-state-pend{
      @include state($font-color-red,"\e699")
    }
    .i-state-done{
      @include state($font-color-green,"\e629")
    }
    .i-state-complete{
      @include state($font-color-gray,"")
    }
  }
}